package com.jzo2o.es.core.operations;

import co.elastic.clients.elasticsearch.ElasticsearchClient;
import lombok.extern.slf4j.Slf4j;

/**
 * Elasticsearch索引操作实现类，基于ElasticsearchClient实现索引管理功能
 */
@Slf4j
public class DefaultIndexOperations implements IndexOperations{
    /**
     * Elasticsearch客户端实例
     */
    private final ElasticsearchClient elasticsearchClient;

    /**
     * 构造方法，注入Elasticsearch客户端
     * @param elasticsearchClient Elasticsearch客户端实例
     */
    public DefaultIndexOperations(ElasticsearchClient elasticsearchClient) {
        this.elasticsearchClient = elasticsearchClient;
    }
}
